from .binance_base import API
from framework_strategy.gopy.gateways.settings import BINANCEAPISETTING


class Spot(API):

    def __init__(self, key=None, secret=None, **kwargs):
        if "base_url" not in kwargs:
            kwargs["base_url"] = BINANCEAPISETTING.API_DOMAIN
        super().__init__(key, secret, **kwargs)

    from .binance_base import server_time
    from .binance_base import exchange_info
    from .binance_base import klines
    from .binance_base import book_ticker
    from .binance_base import depth
    from .binance_base import trades
    from .binance_base import account
    from .binance_base import new_order
    from .binance_base import cancel_order
    from .binance_base import get_order
    from .binance_base import get_open_orders
